package com.tengits.mqttmonitor.rnlibs;

public class RNErrorConstants {
    public static final int ERROR_MQTT_SUCCESS = 0;
    public static final int ERROR_MQTT_SERVER_DISCONNECT = -1;
    public static final int ERROR_MQTT_SERVER_HAS_RUN = -2;
    public static final int ERROR_MQTT_SERVER_NOT_RUN = -3;
    public static final int ERROR_MQTT_EXCEPTION = -4;
    public static final int ERROR_MQTT_CLIENT_CONNECT_FAIL = -5;
    public static final int ERROR_MQTT_CLIENT_SUBSCRIBER_FAIL = -6;
    public static final int ERROR_MQTT_CLIENT_NO_CLIENT = -7;
    public static final int ERROR_MQTT_CLIENT_UNSCRIBER_FAIL = -8;
    public static final int ERROR_MQTT_CLIENT_PUBLISH_FAIL = -9;

    // RS485 Error Constant
    public static final int ERROR_RS485_SUCCESS = 0;
    public static final int ERROR_RS485_INVALID_PARAMETER = -1;
    public static final int ERROR_RS485_CLOSE_DEVICE_FAIL = -2;
    public static final int ERROR_RS485_EXCEPTION = -3;
}
